


interface Config{
    wilddogUrl:string;
    entityUrl:string;
    historyUrl:string;
    ossConfig:any;

    baseUrl:string
}

class configService{


    private  config: Config;
    constructor() {
        this.config={
            // wilddogUrl : "https://wd6734537058hxajcp.wilddogio.com/",
            // wilddogUrl : "https://tms-web-dev.wilddogio.com/", //dev
            wilddogUrl : "https://tmsystem.wilddogio.com/",  //master
            entityUrl : "https://api.map.baidu.com/trace/v2/entity/list",
            historyUrl : "https://api.map.baidu.com/trace/v2/track/gethistory",
            // baseUrl : "/tms/",
            //  baseUrl : "http://192.168.1.230:5005/tms/", //李煜
            baseUrl : "http://192.168.1.224:5006/tms/",//孙天宇
            // baseUrl : "http://192.168.1.108:5005/tms/",//胡庆伟
            ossConfig:{
                region: 'oss-cn-hangzhou',
                accessKeyId: 'LTAItKu8i5yJwbYy',
                accessKeySecret: 'dLgecHvzUJg1MFy3nnzVzX5YgsxRSD',
                
                bucket: 'sinostoragedev'
            }
            
        }
    }


    getConfig(){
        return this.config;
    }
}

angular.module("configService", []).service("configService",  configService);